package com.sczmgk.track.entity;


import com.sczmgk.track.annotation.Column;
import com.sczmgk.track.annotation.ID;
import com.sczmgk.track.annotation.TableName;
import com.sczmgk.track.annotation.Where;
import com.sczmgk.track.entity.base.BasicEntity;
import com.sczmgk.track.db.DBHelper;

/**
 * Created by Administrator on 2016/12/1 0001.
 */
@TableName(DBHelper.TABLE_USER)
public class User extends BasicEntity {

    @Where(isQuery = true)
    @Column(DBHelper.USERID)
    public int userid;

    @Column(DBHelper.USER_NAME)
    public String username;

    @Column(DBHelper.USER_PHONE)
    public String phonenum;

    @Column(DBHelper.USER_HEAD_PATH)
    public String headimg;

    @Column(DBHelper.USER_IMAGELOCALPATH)
    public String imageLocalPath;

    //部门
    @Column(DBHelper.USER_DEPARTMENT)
    public int departmentid;

    //工号
    @Column(DBHelper.USER_JOB_NUMBER)
    public String worknumber ;

    //imei
    @Column(DBHelper.USER_IMEI)
    public String userimei;

    //密码
    public String userpwd ;

    //创建时间
    public String createtime ;

    //当前手机imei绑定状态 0=验证正确  1=手机更换  2=未激活
    @Column(DBHelper.USER_STATUS)
    public int imeistatus;

    @ID(autoIncrement = true)
    @Column(DBHelper.TABLE_ID)
    private int id;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public static final int SIGN_ENABLE = 0;
}
